/**
 * @author Tin
 */
(function(predefinedScripts) {
    var insertScript, scriptHook = document.getElementsByTagName("script")[0];

    insertScript = function(scriptSrcLocation) {
        var script = document.createElement("script");
        script.src = scriptSrcLocation;
        script.type = "text/javascript";
        scriptHook.parentNode.insertBefore(script, scriptHook);
    };

    for (script in predefinedScripts) {
        var scriptSrcLocation = script.src;
        (scriptSrcLocation) ? insertScript(scriptSrcLocation) : false;
    }

    insertScript("./script/lib/jquery.js");
    insertScript("./script/lib/jquery-ui.js");

}());
